<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input data-rule="required" data-order-by='id desc' id="c-number" name="row[number]" type="text" class="form-control selectpage" data-source="feditionaccount/index" data-field="number" value="{$row.number|htmlentities}" placeholder="账户编号" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Timedate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-timedate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[timedate]" type="text" value="{$row.timedate|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sales')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sales" class="form-control" step="0.01" name="row[sales]" type="number" value="{$row.sales|htmlentities}" placeholder="填写{:__('Number')}跟{:__('Timedate')}后自动计算,供参考">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" class="form-control" step="0.01" name="row[amount]" type="number" value="{$row.amount|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Advertising')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-advertising" class="form-control" step="0.01" name="row[advertising]" type="number" value="{$row.advertising|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Single_quantity')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-single_quantity" class="form-control" name="row[single_quantity]" type="number" value="{$row.single_quantity|htmlentities}">
        </div>
    </div>
    <!--销售额/广告花费 = 投入产出比-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Output_ratio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-output_ratio" class="form-control" name="row[output_ratio]" type="text" readonly placeholder="填写{:__('Advertising')}跟{:__('Sales')}后自动计算" value="{$row.output_ratio|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Single_transfer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-single_transfer" class="form-control" name="row[single_transfer]" type="text" value="{$row.single_transfer|htmlentities}" readonly placeholder="填写{:__('Advertising')}跟{:__('Single_quantity')}后自动计算">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Passenger_volume')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-passenger_volume" class="form-control" name="row[passenger_volume]" type="text" value="{$row.passenger_volume|htmlentities}" readonly placeholder="填写{:__('Sales')}跟{:__('Single_quantity')}后自动计算">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Delivery_area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-delivery_area" class="form-control" name="row[delivery_area]" type="text" value="{$row.delivery_area|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Through_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-through_rate" class="form-control" name="row[through_rate]" type="text" value="{$row.through_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Conversion_rate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-conversion_rate" class="form-control" name="row[conversion_rate]" type="text" value="{$row.conversion_rate|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cpc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cpc" class="form-control" name="row[cpc]" type="text" value="{$row.cpc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
